import { Router } from '@angular/router';
import { Component, Input, OnInit } from '@angular/core';

@Component({
	selector: 'app-exception',
	templateUrl: './exception.component.html',
	styleUrls: ['./exception.component.less']
})
export class ExceptionComponent implements OnInit {
	@Input() type: string;
	@Input() isBtn = true;
	@Input() text = '';

	constructor(
		private router: Router
	) { }

	ngOnInit() {
	}
	goHome() {
		this.router.navigateByUrl('/page/home');
	}
}
